<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加后台菜单</title>
<link href="/Public/ui/css/default.css" rel="stylesheet" type="text/css">
<link href="/Public/css/base.css" rel="stylesheet" type="text/css">
<style>
body {
	background: #fff;
}
</style>
<script language="javascript" type="text/javascript" src="/dadaocms/Public/js/jquery-1.8.0.min.js"></script>
<script>
$(function(){
	//查询出所属角色的菜单项
	$("#groupid").change(function(){
		var id = $(this).val();
		$.ajax({
			type:"GET",
			dataType:"json",
			url:"__URL__/jiaose_menu/id/"+id,
			success: function(json){
				html='<option value="0">顶级菜单</option>';
				if(json){
					$.each(json,function(k,v){
						html += '<option value="'+v.menuid+'">';
						if(v.Count){
							html += Array(v.Count+1).join('&nbsp;&nbsp;&nbsp;&nbsp;')
							html += '| -- ';
						}						
						html += v.menuname+'</option>'
					});					 
				}
				$("#topid").html(html);				
			}
		});
		
	});
});
</script>
</head>
<body topmargin="8">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="65%" height="30"><IMG height=14 src="/dadaocms/Public/images/frame/book1.gif" width=20>&nbsp;<a href="__URL__/index"><u>节点管理</u></a> -&gt; 节点增加</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1" >
  <tr>
    <td><table border="0" cellpadding="0" cellspacing="0">
        <tr id="mytab">
          <td width="84" style="cursor:pointer" align="center" id="config_2" background="/Public/images/frame/itemnote2.gif"><strong>节点管理</strong></td>
          <td></td>
        </tr>
      </table></td>
  </tr>
</table>
<form name="form1" id="form1" action="__URL__/jiedian_add" enctype="multipart/form-data" method="post">
  <table width="98%"  border="0" align="center" cellpadding="2" cellspacing="2" id="edit" style="border:1px solid #cfcfcf;background:#ffffff;">
    <tr>
      <td class="bline"><table width="100%" class="mytable">
          <tr class="bline">
            <td width="14%">&nbsp;节点名称：</td>
            <td width='86%'><input name="name" type="text" id="name" style="width:150px" /></td>
          </tr>
          <tr class="bline">
            <td width="14%">&nbsp;节点路径：</td>
            <td width='86%'><input name="action" type="text" id="action" style="width:150px" /></td>
          </tr>
          <tr class="bline">
            <td width="14%">&nbsp;上级节点：</td>
            <td width='86%'><select name="topid" size="15" id="topid" style="width: 350px;">
                <option value="0" selected="selected">&nbsp;顶级节点</option>
                <volist name="topid" id="vo">
                  <option value="{$vo.id}">| {$vo.Count|str_repeat='--',###}
                  <neq name="vo.Count" value="1">| -- </neq>
                  {$vo.name}</option>
                </volist>
              </select></td>
          </tr>
          <tr class="bline">
            <td width="14%">&nbsp;排序：</td>
            <td width='86%'><input name="sort" type="text" id="sort" style="width:150px" value="1" /></td>
          </tr>
        </table></td>
    </tr>
  </table>
  <!-- //高级参数 -->
  
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
    <tr>
      <td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td width="17%">&nbsp;</td>
            <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="115"><input name="imageField" type="image" src="/dadaocms/Public/images/frame/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer"></td>
                  <td width="99"><img src="/dadaocms/Public/images/frame/button_close.gif" width="60" height="22" border="0" onClick="window.opener.location.reload();window.close();" style="cursor:pointer"></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>